package com.boot.mgt.dao.mysql

import com.boot.core.result.ResultTo
import com.boot.mgt.model.TaPoliceSituationMonitoring
import com.boot.mgt.model.vo.TaPoliceSituationMonitoringVo
import org.apache.ibatis.annotations.Param
import org.springframework.stereotype.Repository

@Repository
interface TaPoliceSituationMonitoringMapper {

//    fun list(page_index: Int?, page_size: Int?, map: MutableMap<String, Any>): ResultTo

    fun searchTaPoliceSituationMonitoringList(map: Map<String, Any>?) : List<TaPoliceSituationMonitoringVo?>?

    fun detail(@Param("id")id: Long?, @Param("timeTag")timeTag: String?, @Param("regionId")regionId: String?): TaPoliceSituationMonitoringVo?

    fun detailSum(@Param("id")id: Long?, @Param("timeTag")timeTag: String?, @Param("regionId")regionId: String?): TaPoliceSituationMonitoringVo?

    fun update(@Param("bean") taPoliceSituationMonitoring: TaPoliceSituationMonitoringVo): Int

    fun insert(@Param("bean")taPoliceSituationMonitoring: TaPoliceSituationMonitoringVo): Int

    fun delete(map: Map<String, Any>?): Int

//    fun searchOvertimeResultList(map: Map<String, Any>?) : List<Map<String, Object>>
    fun searchOvertimeResultList(map: Map<String, Any>?) : List<TaPoliceSituationMonitoringVo?>?

    fun searchOvertimeOfTimeRangeResultList(map: HashMap<String, Any>?) : List<TaPoliceSituationMonitoringVo?>?

    fun searchBasicAverageActionTime(map: HashMap<String, Any>?) : List<Map<String, Any?>?>?

    fun searchBasicStatisticsOfActionIn24H(map: HashMap<String, Any>?) : List<Map<String, Any?>?>?

    fun searchNoticeMessage(map: HashMap<String, Any>?) : List<Map<String, Any?>?>?

    fun searchRecentDeathSummary(map: HashMap<String, Any>?) : List<Map<String, Any?>?>?

    fun searchDeathAccidentToday(map: HashMap<String, Any>?) : List<Map<String, Any?>?>?

}